<?php
/* @var $this AccountsController */
/* @var $model Accounts */
/* @var $form CActiveForm */
?>

<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'accounts-form',
  'enableAjaxValidation'=>false,
  'htmlOptions'=>array('class' => 'form uniformForm validateForm'),
)); ?>

<?php if ($form->errorSummary($model)) :?>
<div class="notify notify-error">
	<a href="javascript:;" class="close">×</a>
	<?php echo $form->errorSummary($model); ?>
</div>
<?php endif; ?>

<div class="field-group">
<?php echo $form->label($model,'name'); ?>
	<div class="field">
	<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>128)); ?>
	</div>
</div>

<div class="field-group">
<?php echo $form->labelEx($model,'password'); ?>
	<div class="field">
	<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
	</div>
</div>

<div class="field-group">
<?php echo $form->labelEx($model,'member_id'); ?>
	<div class="field">
	<?php echo $form->textField($model,'member_id'); ?>
	</div>
</div>

<div class="field-group">
<?php echo $form->labelEx($model,'site_id'); ?>
	<div class="field">
	<?php echo $form->dropDownList($model, 'site_id', $siteList, array('empty' => 'All'))?>
	</div>
</div>

<div class="">
<?php echo $form->labelEx($model,'status'); ?>
	<div class="">
	<?php echo $form->radioButtonList($model, 'status',  $statusList, array('separator'=>''))?>
	</div>
</div>

<div class="">
<?php echo $form->labelEx($model,'ad_status'); ?>
	<div class="">
	<?php echo $form->radioButtonList($model,'ad_status', $adStatus, array('separator'=>''))?>
	</div>
</div>

<div class="">
<?php echo $form->labelEx($model,'grid_status'); ?>
	<div class="">
	<?php echo $form->radioButtonList($model,'grid_status', $gridStatus, array('separator'=>''))?>
	</div>
</div>

<div class="field-group">
<?php echo $form->labelEx($model,'money_total'); ?>
	<div class="field">
	<?php echo $form->textField($model,'money_total'); ?>
	</div>
</div>

<div class="field-group">
<?php echo $form->labelEx($model,'money_current'); ?>
	<div class="field">
	    <?php echo $form->textField($model,'money_current'); ?>
    </div>
</div>

<div class="field-group">
<?php echo $form->labelEx($model,'mac_address'); ?>
	<div class="field">
	<?php echo $form->textField($model,'mac_address',array('size'=>60,'maxlength'=>255)); ?>
	</div>
</div>

<div class="field-groups">

	<button class="btn btn-small btn-success" type="submit">
		<span class="icon-check"></span>
		<?php echo Yii::t('main', 'button.ok'); ?>
	</button>
	<a href="<?php echo Yii::app()->createUrl('admin/accounts/list', $_GET); ?>">
		<button class="btn btn-small btn-warning" type="button">
			<span class="icon-x"></span>
			<?php echo Yii::t('main', 'button.cancel'); ?>
		</button> </a>

</div>

<?php $this->endWidget(); ?>